<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Down extends Model
{
    protected $fillable = [
       'data_id','type','user_id'
    ];

    public function data()
    {
        return $this->belongsTo('App\Data','data_id','id');
    }

    public function user()
    {
        return $this->belongsTo('App\User');
    }
}
